#ifndef WORDUSAGEEXAMPLE_H
#define WORDUSAGEEXAMPLE_H

#include <QObject>
#include "serializable.h"

namespace Oxford
{

class WordUsageExample : public Core::Serializable
{
    Q_OBJECT

    Q_PROPERTY(QString wordUsage READ wordUsage)
    Q_PROPERTY(QString sentence READ sentence)
    Q_PROPERTY(QString clarification READ clarification)
private:
    QString _wordUsage;
    QString _sentence;
    QString _clarification;
friend class
    Parser;
public:

    QString wordUsage() const
    {
        return _wordUsage;
    }

    QString sentence() const
    {
        return _sentence;
    }

    QString clarification() const
    {
        return _clarification;
    }

    bool isValid() const;
    ObjectString toString() const;
    static WordUsageExample fromString(QString data);
};

}

#endif // WORDUSAGEEXAMPLE_H
